package com.wan.lession.aop;

import org.aopalliance.aop.Advice;
import org.springframework.aop.ThrowsAdvice;

public class MyException implements ThrowsAdvice, Advice {
    public void afterThrowing(Exception ex){
        System.out.println("这个是异常增强,设置日志的记录");
        System.out.println("异常信息:"+ex.getMessage());
    }
}
